home *** CD-ROM | disk | FTP | other *** search
- on PlayAnim _spriteChan, _startCast, _num, _dir
- MessagePut("play anim, start cast:" && _startCast)
- DisableIdleAnim()
- if _dir = 1 then
- repeat with N = 1 to _num
- set the castNum of sprite _spriteChan to the number of cast _startCast + N - 1
- updateStage()
- end repeat
- else
- repeat with N = 1 to _num
- set j to _num - N + 1
- set the castNum of sprite _spriteChan to the number of cast _startCast + j - 1
- updateStage()
- end repeat
- end if
- EnableIdleAnim(46, 47)
- end
-
- on MessagePut aString
- put aString
- end
-
- on wait aTicks
- set stopTime to aTicks + the ticks
- repeat while the ticks < stopTime
- if the mouseDown then
- dontPassEvent()
- exit
- end if
- end repeat
- end
-
- on PlaySoundWait castNam
- MessagePut("playing sound " && castNam)
- puppetSound(castNam)
- repeat while soundBusy(1)
- nothing()
- end repeat
- end
-
- on GetAthleteIDFromClip
- set _str to GetClipID(1)
- set tmp to char 3 to 5 of _str
- return tmp
- end
-
- on Pad str
- set spaces to 33 - integer(length(str) / 2)
- repeat with I = 1 to spaces
- put " " before str
- end repeat
- return str
- end
-
- on Box I
- put the locH of sprite I && the locV of sprite I
- end
-
- on foo frum, tu
- repeat with I = frum to tu
- put I & ":" && the width of cast I && the height of cast I
- end repeat
- end
-